package com.ruoyi.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付宝用户对象 alipay_user
 * 
 * @author ouran
 * @date 2025-06-17
 */
public class AlipayUserAdmin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @Excel(name = "")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /**  */
    private String openId;

    /**  */
    private String accessToken;

    /**  */
    private Long expiresIn;

    /**  */
    private String refreshToken;

    /**  */
    private Long reExpiresIn;

    /**  */
    private Date authStart;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /**  */
    private String authCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }

    public void setExpiresIn(Long expiresIn) 
    {
        this.expiresIn = expiresIn;
    }

    public Long getExpiresIn() 
    {
        return expiresIn;
    }

    public void setRefreshToken(String refreshToken) 
    {
        this.refreshToken = refreshToken;
    }

    public String getRefreshToken() 
    {
        return refreshToken;
    }

    public void setReExpiresIn(Long reExpiresIn) 
    {
        this.reExpiresIn = reExpiresIn;
    }

    public Long getReExpiresIn() 
    {
        return reExpiresIn;
    }

    public void setAuthStart(Date authStart) 
    {
        this.authStart = authStart;
    }

    public Date getAuthStart() 
    {
        return authStart;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setAuthCode(String authCode) 
    {
        this.authCode = authCode;
    }

    public String getAuthCode() 
    {
        return authCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("accessToken", getAccessToken())
            .append("expiresIn", getExpiresIn())
            .append("refreshToken", getRefreshToken())
            .append("reExpiresIn", getReExpiresIn())
            .append("authStart", getAuthStart())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("authCode", getAuthCode())
            .toString();
    }
}
